package com.hkemmm.cola;

public class Company {
    /**
     *
     * @param mouth     当前月份
     * @param emp       发工资的员工
     */
    public void print_Employee_salary(int mouth,ColaEmployee emp){
        if(emp == null) return;         //如果没有员工，则结束

        //获取员工工资
        double salary = emp.getSalary(mouth);
        //输出员工工资信息
        System.out.println(emp.getName() + "," + mouth + "月工资为：" + salary);
    }
}
